﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SearchPage.aspx.cs" Inherits="SearchPage" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Content/SearchStyle.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="statusShow">
        <ul id="status">
            <li id="licurrent">All</li>
        </ul>
        <div id="sort">
            Sort:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="sortBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="sortBy_SelectedIndexChanged">
                <asp:ListItem>New</asp:ListItem>
                <asp:ListItem>Decrement price</asp:ListItem>
                <asp:ListItem>Increment price</asp:ListItem>
            </asp:DropDownList>
        </div>
    </div>
    <div id="containListItem">
        <asp:Label ID="noitemAlear" runat="server" Text=""></asp:Label>
        <asp:ListView ID="listItem" runat="server" GroupItemCount="4">
            <GroupTemplate>
                <div id="itemPlaceholder" runat="server">
                </div>
            </GroupTemplate>
            <ItemTemplate>
                <div class="item">
                    <img src='<%#Eval("Item_Image") %>' />
                    <p class="title"><a href="ProductDetail.aspx?Id=<%#Eval("ItemID") %>"><%# Eval("ItemTitle") %></a></p>
                    <p class="time"><%# Eval("TimeSpan") %></p>
                    <p class="price"><%# Eval("CurrentPrice") %></p>
                </div>
            </ItemTemplate>
        </asp:ListView>
        <div id="collection">
            <cc1:CollectionPager ID="PagePaging" runat="server" PageSize="8">
            </cc1:CollectionPager>
        </div>
    </div>
</asp:Content>

